#include "ObjectPool.h"
#include <vector>

using namespace std;

void test()
{
    ObjectPool<int> pool;

    vector<int *> vec;
    for (size_t idx{}; idx < 10000; idx++)
    {
        vec.push_back(pool.alloc());
    }

    for (size_t i{}; i < 10000; i++)
    {
        pool.dealloc(vec[i]);
    }
}

int main()
{
    test();
}